home *** CD-ROM | disk | FTP | other *** search
/ Erotic Games: Memory / Erotic Games: Memory.iso / mac / air_installers / AdobeAIR.exe / setup.swf / scripts / mx / core / FlexHTMLLoader.as < prev    next >
Text File  |  2009-02-12  |  2KB  |  71 lines

  1. package mx.core
  2. {
  3.    import flash.html.HTMLLoader;
  4.    import mx.managers.IFocusManagerComplexComponent;
  5.    import mx.utils.NameUtil;
  6.    
  7.    use namespace mx_internal;
  8.    
  9.    public class FlexHTMLLoader extends HTMLLoader implements IFocusManagerComplexComponent
  10.    {
  11.       
  12.       mx_internal static const VERSION:String = "3.0.0.0";
  13.        
  14.       
  15.       private var _focusEnabled:Boolean = true;
  16.       
  17.       private var _mouseFocusEnabled:Boolean = true;
  18.       
  19.       public function FlexHTMLLoader()
  20.       {
  21.          super();
  22.          try
  23.          {
  24.             name = NameUtil.createUniqueName(this);
  25.          }
  26.          catch(e:Error)
  27.          {
  28.          }
  29.       }
  30.       
  31.       override public function toString() : String
  32.       {
  33.          return NameUtil.displayObjectToString(this);
  34.       }
  35.       
  36.       public function get focusEnabled() : Boolean
  37.       {
  38.          return _focusEnabled;
  39.       }
  40.       
  41.       public function assignFocus(param1:String) : void
  42.       {
  43.          stage.assignFocus(this,param1);
  44.       }
  45.       
  46.       public function get mouseFocusEnabled() : Boolean
  47.       {
  48.          return _mouseFocusEnabled;
  49.       }
  50.       
  51.       public function set focusEnabled(param1:Boolean) : void
  52.       {
  53.          _focusEnabled = param1;
  54.       }
  55.       
  56.       public function drawFocus(param1:Boolean) : void
  57.       {
  58.       }
  59.       
  60.       public function setFocus() : void
  61.       {
  62.          stage.focus = this;
  63.       }
  64.       
  65.       public function set mouseFocusEnabled(param1:Boolean) : void
  66.       {
  67.          _mouseFocusEnabled = param1;
  68.       }
  69.    }
  70. }
  71.